"""
URL configuration for EmployeeSystem project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/5.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path

from EmployeeSystemApp import views

urlpatterns = [
    # path('admin/', admin.site.urls),
    # 部门管理
    path('depart/list/', views.depart_list),
    path('depart/add/', views.depart_add),
    path('depart/delete/', views.depart_delete),
    path('depart/<int:ID>/update/', views.depart_update),
    # 用户管理
    path('user/list/', views.user_list),
    path('user/add/', views.user_add),
    path('user/<int:ID>/update/', views.user_update),
    path('user/<int:ID>/delete/', views.user_delete),
    # 业务管理
    path('business/list/', views.business_list),
    path('business/add/', views.business_add),
    path('business/<int:ID>/update/', views.business_update),
    path('business/<int:ID>/delete/', views.business_delete),
    # 登录
    path('login/', views.login),
    # 注册
    path('register/', views.register),
    # 退出登录
    path('logout/', views.logout),
    # 业务报表
    path('chart/', views.chart),
    # 报表数据
    path('chartData/', views.chartData)
]
